package com.narunas;

import java.util.ArrayList;

import com.narunas.containers.ContainerBuilder;
import com.narunas.views.ScalingComponentView;

import android.app.Activity;
import android.content.Context;
import android.graphics.Canvas;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.LinearLayout;

public class ProcButtons extends Activity{

		ViewGroup container;
		ScalingComponentView sBtn;
		ArrayList<View> chidren;
		
		
		
		
		@Override
		public void onCreate(Bundle savedInstanceState) {
			
			super.onCreate(savedInstanceState);
			container = ContainerBuilder.createProcButtonsContainer(this);
			setContentView(container);
			
			//addCompositComponent();
		}
		
		public void addCompositComponent(){
			
			//TODO : add teh components
			ArrayList children = new ArrayList(1);
			
			
			sBtn = new ScalingComponentView(this);
			
			Button ssb = new Button(this);
			ssb.setText("this is a child");
			children.add(ssb);
			

			container.addTouchables(children);
			container.invalidate();
			
			
		}
		                                      
		                                      


}
